const {
  request
} = require('./reque.js');
module.exports = {
  //调拨列表详情
  getlistDetail: (data) => {
    return request('t_accept:get', 'GET', data, true)
  },
  //订单列表
  getOrder: (data) => {
    return request('t_dispatch:list', 'GET', data, true)
  },
  //车辆信息列表
  getCarList: (data) => {
    return request('t_car:list', 'GET', data, true)
  },
  //订单详情
  getOrderDetail: (data) => {
    return request('t_dispatch:get', 'GET', data, true)
  },
  //接单列表
  getOrderList: (data) => {
    return request('t_accept:list', 'GET', data, true)
  },
  //新增接单列表
  addJiedan: (data) => {
    return request('t_accept:create', 'POST', data, true)
  },
  //发车
  faChe: (url, data) => {
    return request(`t_accept:update?${url}`, 'POST', data, true)
  },
  //接单
  jieDan: (url, data) => {
    return request(`t_dispatch:update?${url}`, 'POST', data, true)
  },
  //修改车辆状态
  carStatus: (url, data) => {
    return request(`t_car:update?${url}`, 'POST', data, true)
  },
  //添加行车日志
  addRizhi: (data) => {
    return request('t_driver_log:create', 'POST', data, true)
  },
  //权限
  getCheck: (data) => {
    return request('auth:check', 'GET', data, true)
  },
  //登录
  login: (data) => {
    return request('auth:signIn', 'POST', data, true)
  },
  //---------------------------------------------------------
  //站点首页获取商品列表
  getchanpin: (data) => {
    return request('t_kcgl:list', 'GET', data, true)
  },
  //获取站点数据
  getTree: (data) => {
    return request('t_zdjg:list', 'GET', data, true)
  },
  //上传图片
  uploadimg: (data) => {
    return request('attachments:create', 'POST', data, true)
  },
  //申请调拨单
  addData: (data) => {
    return request('t_db:create', 'POST', data, true)
  },
  //查看调拨单列表
  dbList: (data) => {
    return request('t_db:list', 'GET', data, true)
  },
  //查看调拨单详情
  dbDetail: (data) => {
    return request('t_db:get', 'GET', data, true)
  },
  //申请调拨单通过审批
  updatadb: (data) => {
    return request('t_db:create', 'POST', data, true)
  },
  //调拨申请表
  getdbsqb: (data) => {
    return request('t_db:list', 'GET', data, true)
  },
  //车队列表
  getdbcd: (data) => {
    return request('t_car_team:list', 'GET', data, true)
  },
  //派单
  addpd: (data) => {
    return request('t_dispatch:create', 'POST', data, true)
  },
   //车牌获取
   getcplist: (data) => {
    return request('t_car:list', 'GET', data, true)
  },
  // 成品出库
  cpckupdate:(data) => {
    return request('t_kcgl:update', 'POST', data, true)
  },
  // 注册账号
  userscreate:(data) => {
    return request('users:create', 'POST', data, true)
  },
  //注册时选择的司机权限
  roleslis:(data) => {
    return request('roles:list', 'GET', data, true)
  },
  //系统账号绑定
  userslist: (data) => {
    return request('users:list', 'GET', data, true)
  },
   // 提交司机信息
   t_drivercreate:(data) => {
    return request('t_driver:create', 'POST', data, true)
  },
   //运输合同申请列表
   t_yslist: (data) => {
    return request('t_ys:list', 'GET', data, true)
  },
   //销售合同申请列表
   t_cghtlist: (data) => {
    return request('t_cght:list', 'GET', data, true)
  },
   //新增车辆信息
   addcheliang: (data) => {
    return request('t_head:create', 'POST', data, true)
  },














  //登录
  loginApp: (data) => {
    return request('marketing/login/loginApp', 'POST', data, true)
  },
  //授权
  userinfologin: (data) => {
    return request('lycxcx/user/userinfologin', 'POST', data, true)
  },
  //领取优惠券
  getCoupon: (data) => {
    return request('lycxcx/coupons/rceiveCoupons', 'POST', data, true)
  },
  //领取优惠券
  useCoupons: (data) => {
    return request('lycxcx/coupons/useCoupons', 'POST', data, true)
  },
  //用户观看视频
  watchvideo: (data) => {
    return request('lycxcx/video/watchvideo', 'POST', data, true)
  },
  //获取视频列表
  getVideoList: (data) => {
    return request('lycxcx/video/getvideos', 'GET', data, true)
  },
  //获取优惠券列表
  getCouponList: (data) => {
    return request('lycxcx/coupons/getReceiveCoupons', 'GET', data, true)
  },
  //获取我的优惠券列表
  getCouponListMy: (data) => {
    return request('lycxcx/coupons/getMineCoupons', 'GET', data, true)
  }
  // //banner图接口
  // getBanner:()=>{},
  // //商品详情接口
  // getDetail:(id)=>{

  //   return request('shop/goods/detail','GET',{id:id},true)
  // },
  // //其他接口....

}





// const { request }=require('./reque.js');
// module.exports={

//   //登录
//   login:(data) =>{
//     return request('lycxcx/user/login','POST',data,true)
//   },
//   //授权
//   userinfologin:(data) =>{
//     return request('lycxcx/user/userinfologin','POST',data,true)
//   },
//     //获取优惠券列表
//     getCouponList:(data) =>{
//       return request('lycxcx/coupons/getReceiveCoupons','GET',data,true)
//     }
// }